<?php

/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/8/14
 * Time: 14:33
 */

namespace App\LogicService;

use App\LogicService\Contracts\HospitalLogicContract;
use App\Models\Hospital;


class HospitalLogic extends BaseLogic implements HospitalLogicContract
{

    public function getHospitalsByIds($ids)
    {
        $hospitals = Hospital::select(['id', 'name'])->whereIn('id', $ids)->get();
        return $hospitals;
    }
}